package cst.a903dss.zyfypt_903dss.Activity;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.webkit.WebView;

import cst.a903dss.zyfypt_903dss.R;

public class TcaseActivity extends AppCompatActivity {
    WebView tcase_web;


    private String BASEURL ="http://amicool.neusoft.edu.cn/";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tcase);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        tcase_web=(WebView) findViewById(R.id.tcase_web);


        setSupportActionBar(toolbar);

        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
        fab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                        .setAction("Action", null).show();
            }
        });
        int id;
        id=getIntent().getIntExtra("id",1);
        final String url="http://amicool.neusoft.edu.cn/tcase.php/show/index/id/"+id;

        tcase_web.loadUrl(url);
    }



}
